package com.water.wfo.sys.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 数据字典
 * </p>
 *
 * @author water&7
 * @since 2024-07-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="DataDictionary对象", description="数据字典")
public class DataDictionaryEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.AUTO)
    private long id;

    @ApiModelProperty(value = "字典名称")
    @TableField("KEY_NAME")
    private String keyName;

    @ApiModelProperty(value = "字典属性")
    @TableField("KEY_PROP")
    private String keyProp;

    @ApiModelProperty(value = "字典值")
    @TableField("KEY_VALUE")
    private String keyValue;

    @ApiModelProperty(value = "描述")
    @TableField("DESCRIPTION")
    private String description;

    @ApiModelProperty(value = "字典父属性")
    @TableField("PARENT_KEY_PROP")
    private String parentKeyProp;
    @ApiModelProperty(value = "有效性")
    private String active;
}
